<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1.参数问题。
        // 1.1.两个参数
        const num = (num1,num2) => {
            return num1 + num2
        }

        // 1.2.一个参数
        const power = num => {
            return num * num
        }

        // 2.函数中
        // 2.1.函数代码块中有多行代码
        const test = () => {
            console.log('hello world');
            console.log('hello vuejs');
        }

        // 2.2.函数代码块中只有一行代码
        const mul = (num1, num2) => num1 * num2
    </script>
</body>
</html>